package com.daxia.ogmall.dto;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.daxia.ogmall.common.DesignOrderType;
import com.daxia.ogmall.model.Design;

public class DesignDTO extends Design {
	private Integer houseAreaTag;
	private List<String> imageList;

	private DesignOrderType orderType;
	private boolean queryHasVRUrl;
	private boolean fromAdmin;
	// 城运商id
	private Long cityUserId;
	// 装修公司用户id
	private Long companyUserId;
	
	public DesignOrderType getOrderType() {
		return orderType;
	}

	public void setOrderType(DesignOrderType orderType) {
		this.orderType = orderType;
	}
	
	public Integer getHouseAreaTag() {
		return houseAreaTag;
	}

	public void setHouseAreaTag(Integer houseAreaTag) {
		this.houseAreaTag = houseAreaTag;
	}

	public List<String> getImageList() {
		if (StringUtils.isBlank(getImages())) {
			return new ArrayList<String>();
		}
		imageList = new ArrayList<String>();
		String[] arr = getImages().split(",");
		for (String string : arr) {
			imageList.add(string);
		}
		return imageList;
	}

	public void setImageList(List<String> imageList) {
		this.imageList = imageList;
	}

	public boolean isQueryHasVRUrl() {
		return queryHasVRUrl;
	}

	public void setQueryHasVRUrl(boolean queryHasVRUrl) {
		this.queryHasVRUrl = queryHasVRUrl;
	}

	public boolean isFromAdmin() {
		return fromAdmin;
	}

	public void setFromAdmin(boolean fromAdmin) {
		this.fromAdmin = fromAdmin;
	}

	public Long getCityUserId() {
		return cityUserId;
	}

	public void setCityUserId(Long cityUserId) {
		this.cityUserId = cityUserId;
	}

	public Long getCompanyUserId() {
		return companyUserId;
	}

	public void setCompanyUserId(Long companyUserId) {
		this.companyUserId = companyUserId;
	}
	
}
